<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@page isErrorPage="true"%>
<html>
<head>
<%@include file="/fragment/header.jsp"%>
</head>
<body>
    <h1>Opps...</h1>
    <table width="100%" border="1">
        <tr valign="top">
            <td width="10%"><b>Error:</b></td>
            <td>${pageContext.exception}</td>
        </tr>
        <tr valign="top">
            <td><b>URI:</b></td>
            <td>${pageContext.errorData.requestURI}</td>
        </tr>
        <tr valign="top">
            <td><b>Status code:</b></td>
            <td>${pageContext.errorData.statusCode}</td>
        </tr>
        <tr valign="top">
            <td><b>Stack trace:</b></td>
            <td><c:forEach var="trace" items="${pageContext.exception.stackTrace}" begin="1" end="10">
                    ${trace}<br />
                </c:forEach></td>
        </tr>
        <tr valign="top">
            <td><b>exception:</b></td>
            <td>${exception}</td>
        </tr>
        <tr valign="top">
            <td>Parameter</td>
            <td>${pageContext.request.parameterMap }</td>
    </table>
</body>
</html>